﻿/*----------------------------------------------------------------
    // Copyright (C) 2009 江苏华招网
    // 版权所有。 
    // 作者：庄金冬 
    //
    // 文件名：DistributionRelation.cs
    // 文件功能描述：有关配送关系视图实体类
    // 创建标识：庄金冬2009-03-23 17:22:03
    //
    // 修改标识：
    // 修改描述：
    //
    // 修改标识：
    // 修改描述：
    //
    // 审核人：
    // 审核时间：
    // 审核说明：
 //----------------------------------------------------------------*/

using System;
using System.Collections.Generic;

using System.Text;
using HZ.DrugTrade.Model.Enum;

namespace HZ.DrugTrade.Model.View
{
    /// <summary>
    /// 配送关系视图实体类
    /// </summary>
    [Serializable]
    public class DistributionRelation
    {

        /// <summary>
        /// 商品编号
        /// </summary>
        public string GoodsID
        {
            get;
            set;
        }

        /// <summary>
        /// 剂型名
        /// </summary>
        public string MedicineModelName
        {
            get;
            set;
        }

        /// <summary>
        /// 规格
        /// </summary>
        public string Outlookc
        {
            get;
            set;
        }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit
        {
            get;
            set;
        }

        /// <summary>
        /// 分类名
        /// </summary>
        public string SortName
        {
            get;
            set;
        }

        /// <summary>
        /// 生产企业名称
        /// </summary>
        public string CompanyName_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业名称
        /// </summary>
        public string CompanyName_TB
        {
            get;
            set;
        }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string GoodsName
        {
            get;
            set;
        }

        /// <summary>
        /// 转换系数
        /// </summary>
        public int? Factor
        {
            get;
            set;
        }

        /// <summary>
        /// 包装
        /// </summary>
        public string Pack
        {
            get;
            set;
        }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductID
        {
            get;
            set;
        }

        /// <summary>
        /// 剂型编号
        /// </summary>
        public string MedicineModelID
        {
            get;
            set;
        }

        /// <summary>
        /// 类型编号
        /// </summary>
        public string SortID
        {
            get;
            set;
        }

        /// <summary>
        /// 生产企业编号
        /// </summary>
        public string CompanyID_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业编号
        /// </summary>
        public string CompanyID_TB
        {
            get;
            set;
        }

        /// <summary>
        /// 父分类编号
        /// </summary>
        public string ParentSortID
        {
            get;
            set;
        }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName
        {
            get;
            set;
        }

        /// <summary>
        /// 采购目录编号
        /// </summary>
        public string ProcureCatalogID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购项目编号
        /// </summary>
        public string ProjectID
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业编号集合（多个以,分隔）
        /// </summary>
        public string CompanyIDs_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业名称集合（多个以,分隔）
        /// </summary>
        public string CompanyNames_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 中标价格
        /// </summary>
        public decimal? ProcurePrice
        {
            get;
            set;
        }

        /// <summary>
        /// 采购目录是否启用
        /// </summary>
        public bool? ProcureCatalog_IsUsing
        {
            get;
            set;
        }

        /// <summary>
        /// 是否流程中
        /// </summary>
        public bool? IsFlowing
        {
            get;
            set;
        }

        /// <summary>
        /// 目录来源（0.正常采购1临时采购）
        /// </summary>
        public int? SortSource
        {
            get;
            set;
        }

        /// <summary>
        /// 目录添加时间
        /// </summary>
        public System.DateTime? AddTime
        {
            get;
            set;
        }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName
        {
            get;
            set;
        }

        /// <summary>
        /// 采购开始时间
        /// </summary>
        public System.DateTime? ProcureStartTime
        {
            get;
            set;
        }

        /// <summary>
        /// 采购结束时间
        /// </summary>
        public System.DateTime? ProcureEndTime
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构是否启用采购目录
        /// </summary>
        public bool? Hospital_IsUsing
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构编号
        /// </summary>
        public string HospitalID
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构地区编号
        /// </summary>
        public string AreaID
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构名称
        /// </summary>
        public string HospitalName
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构联系地址
        /// </summary>
        public string HospitalAddress
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构联系人
        /// </summary>
        public string ContactPerson
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构联系电话
        /// </summary>
        public string ContactTel
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业名称
        /// </summary>
        public string CompanyName_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal? Price
        {
            get;
            set;
        }

        /// <summary>
        /// 流程编号
        /// </summary>
        public string FlowID
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构是否启用该配送关系
        /// </summary>
        public bool? DistributionIsUsing
        {
            get;
            set;
        }

        /// <summary>
        /// 拼音码
        /// </summary>
        public string PinyinCode
        {
            get;
            set;
        }

        /// <summary>
        /// 五笔码
        /// </summary>
        public string WBCode
        {
            get;
            set;
        }


        /// <summary>
        /// 配送企业编号
        /// </summary>
        public string CompanyID_PS
        {
            get;
            set;
        }
        /// <summary>
        ///  是否能配送(1能配送,0 不能配送)
        /// </summary>
        public bool? CanDistribute { get; set; }
        /// <summary>
        /// 质量层次
        /// </summary>
        public string QualityLevel { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj is DistributionRelation)
            {

                DistributionRelation other = obj as DistributionRelation;
                return ProcureCatalogID == other.ProcureCatalogID && HospitalID == other.HospitalID && CompanyID_PS == other.CompanyID_PS;
            }
            else
            {
                return false;
            }

        }

    }
}